﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Business_Layer
{
    [Serializable]
    public class Dia
    {
        public Dia(Bitmap dia)
        {
            this.dia = new Bitmap(dia);
        }

        private Bitmap dia;

        /// <summary>
        /// Draw the current Dia on the screen.
        /// </summary>
        /// <param name="screen">Bitmap to draw on.</param>
        /// <returns></returns>
        public Bitmap Draw(Bitmap screen)
        {
            using (Graphics g = Graphics.FromImage(screen))
            {
                g.Clear(Color.White);
                g.DrawImage(dia, new Point(0, 0));
            }
            return screen;
        }
    }
}
